<?php

namespace Acme\EventBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name="statisticgroup")
 * @ORM\Entity(repositoryClass="Acme\EventBundle\Entity\StatisticgroupRepository")
 */
class Statisticgroup {
	/**
	 * @ORM\Column(type="integer")
	 * @ORM\Id
	 * @ORM\GeneratedValue(strategy="AUTO")
	 */
	protected $id;
	
	/**
	 * @ORM\Column(type="string", length=255)
	 */
	protected $name;
	
	/**
	 * @ORM\OneToMany(targetEntity="Statisticresult", mappedBy="statisticgroup")
	 */
	protected $statisticresults;
	
	/**
	 * Constructor
	 */
	public function __construct() {
		$this->statisticresults = new \Doctrine\Common\Collections\ArrayCollection ();
	}
	
	/**
	 * Get id
	 *
	 * @return integer
	 */
	public function getId() {
		return $this->id;
	}
	
	/**
	 * Set name
	 *
	 * @param string $name        	
	 * @return Statisticgroup
	 */
	public function setName($name) {
		$this->name = $name;
		
		return $this;
	}
	
	/**
	 * Get name
	 *
	 * @return string
	 */
	public function getName() {
		return $this->name;
	}
	
	/**
	 * Add statisticresults
	 *
	 * @param \Acme\EventBundle\Entity\Statisticresult $statisticresults        	
	 * @return Statisticgroup
	 */
	public function addStatisticresult(\Acme\EventBundle\Entity\Statisticresult $statisticresults) {
		$this->statisticresults [] = $statisticresults;
		
		return $this;
	}
	
	/**
	 * Remove statisticresults
	 *
	 * @param \Acme\EventBundle\Entity\Statisticresult $statisticresults        	
	 */
	public function removeStatisticresult(\Acme\EventBundle\Entity\Statisticresult $statisticresults) {
		$this->statisticresults->removeElement ( $statisticresults );
	}
	
	/**
	 * Get statisticresults
	 *
	 * @return \Doctrine\Common\Collections\Collection
	 */
	public function getStatisticresults() {
		return $this->statisticresults;
	}
}